package com.easylinkin.linkappapi.hcmy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.hcmy.entity.LivestockFarming;
import com.easylinkin.linkappapi.hcmy.entity.LivestockFarmingStatistic;
import org.apache.ibatis.annotations.Param;

/**
 * class info :
 *
 * @author liuqihang
 * @date 2021/10/15 18:12
 */
public interface LivestockFarmingMapper extends BaseMapper<LivestockFarming> {

    /**
     * 获取畜禽养殖分页列表数据
     * @param page
     * @param livestockFarming
     * @return
     */
    IPage<LivestockFarming> getLivestockFarmingPage(Page page, @Param("livestockFarming")LivestockFarming livestockFarming);

    /**
     * 查询畜禽养殖统计，按照年度、示范区分组
     * @param page
     * @param livestockFarming
     * @return
     */
    IPage<LivestockFarmingStatistic> getLivestockFarmingStatisticPage(Page page, @Param("livestockFarming")LivestockFarming livestockFarming);
}
